package com.supermarket.api.repository;

import com.supermarket.api.entity.HotProductEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 人气推荐商品相关
 * @author 李其伟
 * @date 2023/10/23
 */
@Repository
public interface HotProductRepository extends JpaRepository<HotProductEntity, Long> {

    Page<HotProductEntity> findAllByPublishStatus(Integer publishStatus, Pageable pageable);
}
